package com.ssfGame.puremvc.controller 
{
	
	
	import com.ssfGame.puremvc.StaticConst;
	import com.ssfGame.puremvc.controller.cell.InitBaseAPICommand;
	import com.ssfGame.puremvc.controller.cell.InitGameStageCommand;
	import com.ssfGame.puremvc.controller.cell.InitPVPAPICommand;
	import com.ssfGame.puremvc.controller.cell.LoadCommand;
	import com.ssfGame.puremvc.controller.cell.ShowLogoMovieCommand;
	import com.ssfGame.puremvc.controller.load.LoadCommCommand;
	import com.ssfGame.puremvc.controller.load.LoadConfigCommand;
	import com.ssfGame.puremvc.controller.load.LoadInitLoadCommand;
	
	import flash.net.getClassByAlias;
	
	import org.puremvc.as3.patterns.command.MacroCommand;
	
	/**
	 * 
	 * @author chery
	 */
	public class ControllerPrepCommand extends MacroCommand
	{
		/**
		 * 预注册command
		 */
		public function ControllerPrepCommand()
		{
			super();
		}
		override protected function initializeMacroCommand():void{
			facade.registerCommand(StaticConst.N_C_LOAD,LoadCommand);
			facade.registerCommand(StaticConst.N_C_LOAD_CONFIG,LoadConfigCommand);
			facade.registerCommand(StaticConst.N_C_LOAD_INITLOADER,LoadInitLoadCommand);
			facade.registerCommand(StaticConst.N_C_LOAD_COMMON,LoadCommCommand);
			
			
			facade.registerCommand(StaticConst.N_C_INIT_GAME_STAGE,InitGameStageCommand);
			facade.registerCommand(StaticConst.N_C_SHOW_LOGO_MOVIE,ShowLogoMovieCommand);
			
			facade.registerCommand(StaticConst.N_C_INIT_PVP_API,InitPVPAPICommand);
			facade.registerCommand(StaticConst.N_C_INIT_BASE_API,InitBaseAPICommand);
			
		}
		
	}
}